﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pay.Model.Interfaces
{
   public  interface IPagedListOutput<T>
    {
        /// <summary>
        /// 结果集
        /// </summary>
        IList<T> Items { get; set; }
    }
    public interface IPagedOutput<T> : IPagedListOutput<T>
    {
        /// <summary>
        /// 结果统计
        /// </summary>
        int TotalCount { get; set; }
    }
    [Serializable]
    public class PagedListOutput<T> : IPagedListOutput<T>
    {
        public PagedListOutput()
        {
            Items = new List<T>();
        }
        public IList<T> Items { get; set; }
    }
    [Serializable]
    public class PagedOutput<T> : PagedListOutput<T>, IPagedOutput<T>
    {
        /// <summary>
        /// 结果统计
        /// </summary>
        public int TotalCount { get; set; }

        public int Page { get; set; }

        public int Rows { get; set; }
    }
}
